﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000EA7 RID: 3751
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueCommonExpandedFormula : IMessage<RogueCommonExpandedFormula>, IMessage, IEquatable<RogueCommonExpandedFormula>, IDeepCloneable<RogueCommonExpandedFormula>, IBufferMessage
	{
		// Token: 0x17002F99 RID: 12185
		// (get) Token: 0x0600A81A RID: 43034 RVA: 0x001C63A1 File Offset: 0x001C45A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueCommonExpandedFormula> Parser
		{
			get
			{
				return RogueCommonExpandedFormula._parser;
			}
		}

		// Token: 0x17002F9A RID: 12186
		// (get) Token: 0x0600A81B RID: 43035 RVA: 0x001C63A8 File Offset: 0x001C45A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueCommonExpandedFormulaReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002F9B RID: 12187
		// (get) Token: 0x0600A81C RID: 43036 RVA: 0x001C63BA File Offset: 0x001C45BA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueCommonExpandedFormula.Descriptor;
			}
		}

		// Token: 0x0600A81D RID: 43037 RVA: 0x001C63C1 File Offset: 0x001C45C1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonExpandedFormula()
		{
		}

		// Token: 0x0600A81E RID: 43038 RVA: 0x001C63C9 File Offset: 0x001C45C9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonExpandedFormula(RogueCommonExpandedFormula other) : this()
		{
			this.formulaInfo_ = ((other.formulaInfo_ != null) ? other.formulaInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A81F RID: 43039 RVA: 0x001C63FE File Offset: 0x001C45FE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonExpandedFormula Clone()
		{
			return new RogueCommonExpandedFormula(this);
		}

		// Token: 0x17002F9C RID: 12188
		// (get) Token: 0x0600A820 RID: 43040 RVA: 0x001C6406 File Offset: 0x001C4606
		// (set) Token: 0x0600A821 RID: 43041 RVA: 0x001C640E File Offset: 0x001C460E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FormulaInfo FormulaInfo
		{
			get
			{
				return this.formulaInfo_;
			}
			set
			{
				this.formulaInfo_ = value;
			}
		}

		// Token: 0x0600A822 RID: 43042 RVA: 0x001C6417 File Offset: 0x001C4617
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueCommonExpandedFormula);
		}

		// Token: 0x0600A823 RID: 43043 RVA: 0x001C6425 File Offset: 0x001C4625
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueCommonExpandedFormula other)
		{
			return other != null && (other == this || (object.Equals(this.FormulaInfo, other.FormulaInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A824 RID: 43044 RVA: 0x001C6458 File Offset: 0x001C4658
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.formulaInfo_ != null)
			{
				num ^= this.FormulaInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A825 RID: 43045 RVA: 0x001C6494 File Offset: 0x001C4694
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A826 RID: 43046 RVA: 0x001C649C File Offset: 0x001C469C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A827 RID: 43047 RVA: 0x001C64A5 File Offset: 0x001C46A5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.formulaInfo_ != null)
			{
				output.WriteRawTag(26);
				output.WriteMessage(this.FormulaInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A828 RID: 43048 RVA: 0x001C64D8 File Offset: 0x001C46D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.formulaInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.FormulaInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A829 RID: 43049 RVA: 0x001C6518 File Offset: 0x001C4718
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueCommonExpandedFormula other)
		{
			if (other == null)
			{
				return;
			}
			if (other.formulaInfo_ != null)
			{
				if (this.formulaInfo_ == null)
				{
					this.FormulaInfo = new FormulaInfo();
				}
				this.FormulaInfo.MergeFrom(other.FormulaInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A82A RID: 43050 RVA: 0x001C656C File Offset: 0x001C476C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A82B RID: 43051 RVA: 0x001C6578 File Offset: 0x001C4778
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 26U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					if (this.formulaInfo_ == null)
					{
						this.FormulaInfo = new FormulaInfo();
					}
					input.ReadMessage(this.FormulaInfo);
				}
			}
		}

		// Token: 0x04004456 RID: 17494
		private static readonly MessageParser<RogueCommonExpandedFormula> _parser = new MessageParser<RogueCommonExpandedFormula>(() => new RogueCommonExpandedFormula());

		// Token: 0x04004457 RID: 17495
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004458 RID: 17496
		public const int FormulaInfoFieldNumber = 3;

		// Token: 0x04004459 RID: 17497
		private FormulaInfo formulaInfo_;
	}
}
